﻿using System;
using GameCreator.Core;
using Gp.Scripts.Core;
using PixelCrushers.DialogueSystem;

using UnityEngine;
using DialogueSystemTrigger = PixelCrushers.DialogueSystem.Wrappers.DialogueSystemTrigger;

namespace Gp.GCX {
//     [AddComponentMenu("")]
//     public class ShowDialogueAction : IAction {
//         [SerializeField] private DialogueSystemTrigger trigger;
//
//         private void Reset() {
//             if (trigger && (trigger = this.GetComponentInChildren<DialogueSystemTrigger>())) return;
//             trigger = this.AddComponent<DialogueSystemTrigger>();
//             trigger.enabled = false;
//
//
//             trigger.trigger = DialogueSystemTriggerEvent.OnEnable;
//         }
//
//         public override bool InstantExecute(GameObject target, IAction[] actions, int index) {
//             trigger.enabled = true;
//             
//             return true;
//         }
//
//
// #if UNITY_EDITOR
//
//         public new static string NAME = "Gp/触发对话";
//         private const string NODE_TITLE = "触发对话";
//
//         public override string GetNodeTitle() {
//             return NODE_TITLE;
//         }
//
// #endif
    // }
}